-- GENERATED SPELL FOR [Heathen Guard] --


function spell0_17621(pUnit, Event) --@Bloodthirst,n/a--
pUnit:FullCastSpellOnTarget(30474,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17621', 0, 1)
end

function spell1_17621(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(30485,pUnit)
pUnit:RegisterEvent('Sorts_17621', 621, 1)
end

function Sorts_17621(pUnit, Event)
local choix_sorts_17621 = math.random(0, 1)
if choix_sorts_17621 == 0 then
pUnit:RegisterEvent('spell0_17621', 1, 1)
end
if choix_sorts_17621 == 1 then
pUnit:RegisterEvent('spell1_17621', 1, 1)
end
end

function mob17621_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17621', math.random(1500, 3000), 1)
end

function mob17621_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17621_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17621_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17621, 1, 'mob17621_Action')
RegisterUnitEvent(17621, 2, 'mob17621_Leave')
RegisterUnitEvent(17621, 3, 'mob17621_Kill')
RegisterUnitEvent(17621, 4, 'mob17621_Die')
